/*
 * @Author: 小毅
 * @Date: 2021-08-18 09:23:57
 * @LastEditTime: 2021-11-17 15:09:04
 * @Description: App组件，组装整个应用的布局
 */
import { Layout } from 'antd';
import { BrowserRouter as Router, Route, Link } from "react-router-dom";
import LayoutView from './Component/Layout';

import { MyEventEmitter } from './globalEvent'
/**
 * 在import 前面有const let var 语句会报一下错误
 *  import in body of module; reorder to top  import/first 
 *  Search for the keywords to learn more about each error.
*/
const { Header, Footer, Sider, Content } = Layout;
// const routes = routerMap(routerList


// 挂载全局发布订阅 MyEventEmitter
const myEvent = new MyEventEmitter()
window.myEvent = myEvent

function App() {
  return (
    <Router>
      <LayoutView />
    </Router>
  )
}
export default App;
